import json

from config import BASE_DIR


def read_login_data(file_name):
    data_list = []
    with open(F"{BASE_DIR}/data/{file_name}.json", "r", encoding="utf-8") as f:
        new_list = json.load(f)
        for item in new_list:
            data_list.append(tuple(item.values())[1:])
    return data_list

